﻿package com.gengine.core.frame
{

    public class FrameManager extends Object
    {
        private static var _flashFrame:IFlashFrame;
        private static var _timerFrame:IFrame;
        private static var _mTimerFrame:IFrame;
        public static var isSecUpdate:Boolean = false;

        public function FrameManager()
        {
            return;
        }// end function

        public static function get flashFrame() : IFlashFrame
        {
            if (_flashFrame == null)
            {
                _flashFrame = new FlashFrame(24);
            }
            return _flashFrame;
        }// end function

        public static function get timerFrame() : IFrame
        {
            if (_timerFrame == null)
            {
                _timerFrame = new TimerFrame();
            }
            return _timerFrame;
        }// end function

        public static function get mTimerFrame() : IFrame
        {
            if (_mTimerFrame == null)
            {
                _mTimerFrame = new MTimerFrame();
            }
            return _mTimerFrame;
        }// end function

    }
}
